<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <script src="../js/vue.js"></script>
</head>
<body>
    <div id="app">
        <div v-if="(isShow)" style="background-color: lightblue;">v-if指令</div>
        <div v-show="isShow" style="background-color: #4DFFFF;">v-show指令</div>
        <button @click="isShow = !isShow">显示/隐藏</button>
    </div>
    <script>
        var vm = new Vue({
            el: '#app',
            data: {
                isShow:true
                }
        })
    </script>
</body>
</html>